local DamageType = require "engine.DamageType"

newBirthDescriptor{
	type = "base",
	name = "base",
	desc = {
	},
	descriptor_choices =
	{
		element =
		{
			['Mana Elemental'] = function() return profile.mod.allow_build.player_mana and "allow" or "disallow" end,
			['Chaos Elemental'] = function() return profile.mod.allow_build.player_chaos and "allow" or "disallow" end,
		},
	},
	experience = 1.0,
	combat = { dam=2, atk=10, apr=5, dammod={str=0.6} },

	body = { INVEN = 100, BODY = 1, CLOAK = 1, HEAD = 1, BELT = 1, HANDS = 1, FEET = 1 },
	copy = {
		max_level = 20,
		lite = 4,
		max_life = 25,
	},
	talents = {
		[ActorTalents.T_ZAP]=1,
	},
}

newBirthDescriptor{
	type = "element",
	name = "Air Elemental",
	desc = {"#YELLOW#Air Elemental#LAST#:",
			"These elementals are faster than the others;",
			"however, they are weaker, and have less health.",
			"They have #YELLOW#lightning#LAST# attacks, and are weak against #UMBER#earth#LAST#.",
		   },
	stats = { str=-1, con=-2, dex=5 },
	color_r=230,
	color_g=230,
	color_b=0,
	copy = {
		faction = "air",
		type = "elemental", subtype="air",
		starting_zone = "town-castle",
		starting_intro = "air",
		life_rating=9,
		energy = {mod=1.2},
	},
	combat = { damtype=DamageType.LIGHTNING },
	resists = { [DamageType.LIGHTNING] = 50, [DamageType.EARTH] = -50 },
}

newBirthDescriptor{
	type = "element",
	name = "Earth Elemental",
	desc = {"#UMBER#Earth Elemental#LAST#:",
			"These elementals are hardier than the others;",
			"however, they are slower and less dextrous.",
			"They have #UMBER#earth#LAST# attacks, and are weak against #YELLOW#lightning#LAST#.",
		   },
	stats = { str=1, con=3, dex=-2 },
	color_r=168,
	color_g=64,
	color_b=0,
	copy = {
		faction = "earth",
		type = "elemental", subtype="earth",
		starting_zone = "town-castle",
		starting_intro = "earth",
		life_rating=13,
		energy = {mod=0.8},
	},
	combat = { damtype=DamageType.Earth },
	resists = { [DamageType.EARTH] = 50, [DamageType.LIGHTNING] = -50, },
}

newBirthDescriptor{
	type = "element",
	name = "Fire Elemental",
	desc = {"#RED#Fire Elemental#LAST#:",
			"These elementals are more powerful than the others;",
			"however, they have less health.",
			"They have #RED#fire#LAST# attacks, and are weak against #BLUE#cold#LAST#.",
		   },
	stats = { str=2, con=-1, dex=1 },
	color_r=230,
	color_g=0,
	color_b=0,
	copy = {
		faction = "fire",
		type = "elemental", subtype="fire",
		starting_zone = "town-castle",
		starting_intro = "fire",
		life_rating=10,
	},
	combat = { dam=3, damtype=DamageType.FIRE },
	resists = { [DamageType.FIRE] = 50, [DamageType.COLD] = -50, },
}

newBirthDescriptor{
	type = "element",
	name = "Water Elemental",
	desc = {"#BLUE#Water Elemental#LAST#:",
			"These elementals are average, with no real strengths.",
			"They have #BLUE#cold#LAST# attacks, and are weak against #RED#fire#LAST#.",
		   },
	stats = { str=1, con=1, dex=0 },
	color_r=0,
	color_g=0,
	color_b=230,
	copy = {
		faction = "water",
		type = "elemental", subtype="water",
		starting_zone = "town-castle",
		starting_intro = "water",
		life_rating=10,
	},
	combat = { damtype=DamageType.COLD },
	resists = { [DamageType.COLD] = 50, [DamageType.FIRE] = -50, },
}

-- hidden types
newBirthDescriptor{
	type = "element",
	name = "Mana Elemental",
	desc = {"#ORCHID#Mana Elemental#LAST#:",
			"These elementals are highly resilient; however, they do less damage, except against chaos elementals.",
			"They have #ORCHID#mana#LAST# attacks, and are weak against #PURPLE#C#RED#h#LIGHT_GREEN#a#YELLOW#o#UMBER#s#LAST#.",
		   },
	stats = { str=2, con=2, dex=2 },
	color_r=230,
	color_g=230,
	color_b=0,
	copy = {
		faction = "mana",
		type = "elemental", subtype="mana",
		starting_zone = "town-castle",
		starting_intro = "mana",
		life_rating=12,
	},
	combat = { damtype=DamageType.MANA },
	resists = { [DamageType.COLD] = 50, [DamageType.EARTH] = 50, [DamageType.FIRE] = 50, [DamageType.LIGHTNING] = 50, [DamageType.MANA] = 50, [DamageType.CHAOS] = -50, },
}

newBirthDescriptor{
	type = "element",
	name = "Chaos Elemental",
	desc = {"#YELLOW#C#RED#h#GREEN#a#ORCHID#o#BLUE#s #UMBER#E#LIGHT_GREEN#l#WHITE#e#PURPLE#m#YELLOW#e#LIGHT_BLUE#n#LIGHT_UMBER#t#GOLD#a#DARK_GREEN#l#WHITE#:",
			"These elementals are fearsome beings of power; They despise the other elementals and they are capable of huge damage output.",
			"They have #PURPLE#C#RED#h#LIGHT_GREEN#a#YELLOW#o#UMBER#s#WHITE# attacks, and are weak against #ORCHID#mana#WHITE#.",
		   },
	stats = { str=3, con=3, dex=0 },
	color_r=230,
	color_g=230,
	color_b=0,
	copy = {
		faction = "chaos",
		type = "elemental", subtype="chaos",
		starting_zone = "town-castle",
		starting_intro = "chaos",
		life_rating=10,
	},
	combat = { dam=5, damtype=DamageType.CHAOS },
	resists = { [DamageType.COLD] = -20, [DamageType.EARTH] = -20, [DamageType.FIRE] = -20, [DamageType.LIGHTNING] = -20, [DamageType.MANA] = -20, [DamageType.MANA] = -75, },
}
